<script src="view/resource/js/tinymce.min.js" referrerpolicy="origin"></script>
<!--初始化tinymce-->
<script type="text/javascript">
    tinymce.init({
        selector: '#mytextarea',
        language: 'zh_CN',
        directionality: 'rtl',
        browser_spellcheck: true,
        contextmenu: false,
        plugins: [
            "advlist autolink lists link image charmap print preview anchor",
            "searchreplace visualblocks code fullscreen",
            "insertdatetime media table contextmenu paste imagetools wordcount",
            "code"
        ],
        toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code",

    });
    /*tinymce.activeEditor.uploadImages(function(success) {
        $.post('ajax/post.do', tinymce.activeEditor.getContent()).done(function() {
            console.log("Uploaded images and posted content as an ajax request.");
        });
    });*/
</script>


<form method="post">
    <textarea id="mytextarea"></textarea>
</form>